<script>
	import Vue from 'vue'
	import {
		mapActions,
		mapGetters
	} from "vuex";
	export default {
		onLaunch: function() {
			let that = this;
			uni.getSystemInfo({
				success: function(e) {
					// #ifndef MP
					Vue.prototype.ScreenHeight = e.screenHeight;
					Vue.prototype.ScreenWidth = e.screenWidth;
					Vue.prototype.StatusBar = e.statusBarHeight;
					if (e.platform == 'android') {
						Vue.prototype.CustomBar = e.statusBarHeight + 50;
					} else {
						Vue.prototype.CustomBar = e.statusBarHeight + 45;
					};
					// #endif
					// #ifdef MP-WEIXIN
					Vue.prototype.StatusBar = e.statusBarHeight;
					let custom = wx.getMenuButtonBoundingClientRect();
					Vue.prototype.Custom = custom;
					Vue.prototype.CustomBar = custom.bottom + custom.top - e.statusBarHeight;
					// #endif		
					// #ifdef MP-ALIPAY
					Vue.prototype.StatusBar = e.statusBarHeight;
					Vue.prototype.CustomBar = e.statusBarHeight + e.titleBarHeight;
					// #endif
				}
			})
		},
		onShow() {},
		computed: {
			...mapGetters(['userinfo', 'token1']),
		},
		onShow: function() {},
		onHide: function() {},
		data() {
			return {}
		},
		methods: {},
	}
</script>

<style lang="scss">
	@import "plugin/colorui/main.css";
	@import "plugin/colorui/icon.css";
	@import "plugin/colorui/animation.css";
	@import "plugin/uview-ui/index.scss";

	.nav-bar {
		background-color: $theme-color;
		color: $text-fff;
	}

	.theme-btn {
		font-size: $uni-font-size-base;
		background-color: $theme-color;
		color: $text-fff;
	}

	uni-modal .uni-modal__ft {
		font-size: $uni-font-size-base;
	}
</style>